var mongoose = require("mongoose");
var mongoosePaginate = require("mongoose-paginate");

var schema = new mongoose.Schema({
    title: String,
    genders: Array,
    price: Number,
    num:Number,
    src: String,
    date: { type: Date, default: Date.now }
});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model("Product", schema);